package com.android.wineshop;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

public class SplashScreen extends Activity {
    /** Called when the activity is first created. */
       	@Override
        public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.splash);
            Handler handler = new Handler();
            handler.postDelayed(new splashHandler(), 2000);
            
        }
        class splashHandler implements Runnable{

    		@Override
    		public void run() {
    			Intent intent = new Intent(SplashScreen.this, MainScreen.class);
    			startActivity(intent);
    			SplashScreen.this.finish();
    			
    		}
        	
        }

}